package r21310.chap05.d1101;

import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
        System.out.println("请输入用户名");
        Scanner sc=new Scanner(System.in);
        String YH=sc.next();
        if (YH.matches("\\w{6,}"))
        {
            System.out.println("输入成功");
        }else {
            System.out.println("用户名输入错误");
        }

    }
}
